package com.clz.hyperit.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Generated;
import org.hibernate.annotations.GenerationTime;

import com.clz.hyperit.util.IdAnnotationin;
import com.fasterxml.jackson.annotation.JsonInclude;

@JsonInclude(JsonInclude.Include.NON_NULL)
@Entity
@Table(name = "userdetail", catalog = "hyperit")
public class UserDetail {


	@IdAnnotationin
	private Integer id; //
	private String name; // 姓名
	private Boolean sex; // 性别
	private String city; // 城市
	private Integer exp; // 经验
	private Integer total_sign; // 总签到天数
	private Integer continous_sign; // 连续签到天数
	private Integer hb; // 论坛货币
	private String signature; // 签名
	private String skill; // 技能
	private String hobby; // 兴趣
	private Integer position_id; // 职业
	private String createtime; // 注册时间
	private String head; // 头像路径
	private Integer user_id; // 外键
	private Integer fans; // 粉丝数量
	private Integer article; // 文章数量
	private Integer accept; // 被采纳的回答的数量
	private Integer note; // 随笔数量
	private String address; // 收货地址
	private String signtime; //签到时间
	private Integer status;
	public UserDetail() {

	}

	public UserDetail(Integer id, String createtime) {
		
		this.id = id;
		this.createtime = createtime;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "sex")
	public Boolean getSex() {
		return sex;
	}

	public void setSex(Boolean sex) {
		this.sex = sex;
	}

	@Column(name = "city")
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "exp")
	public Integer getExp() {
		return exp;
	}

	public void setExp(Integer exp) {
		this.exp = exp;
	}

	@Column(name = "total_sign")
	public Integer getTotal_sign() {
		return total_sign;
	}

	public void setTotal_sign(Integer total_sign) {
		this.total_sign = total_sign;
	}

	@Column(name = "continous_sign")
	public Integer getContinous_sign() {
		return continous_sign;
	}

	public void setContinous_sign(Integer continous_sign) {
		this.continous_sign = continous_sign;
	}

	@Column(name = "hb")
	public Integer getHb() {
		return hb;
	}

	public void setHb(Integer hb) {
		this.hb = hb;
	}

	@Column(name = "signature")
	public String getSignature() {
		return signature;
	}

	public void setSignature(String signature) {
		this.signature = signature;
	}

	@Column(name = "skill")
	public String getSkill() {
		return skill;
	}

	public void setSkill(String skill) {
		this.skill = skill;
	}

	@Column(name = "hobby")
	public String getHobby() {
		return hobby;
	}

	public void setHobby(String hobby) {
		this.hobby = hobby;
	}

	@Column(name = "position_id")
	public Integer getPosition_id() {
		return position_id;
	}

	public void setPosition_id(Integer position_id) {
		this.position_id = position_id;
	}

	@Generated(GenerationTime.INSERT)
	@Column(name = "createtime")
	public String getCreatetime() {
		return createtime;
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}

	@Column(name = "head")
	public String getHead() {
		return head;
	}

	public void setHead(String head) {
		this.head = head;
	}

	@Column(name = "user_id")
	public Integer getUser_id() {
		return user_id;
	}

	public void setUser_id(Integer user_id) {
		this.user_id = user_id;
	}

	@Column(name = "fans")
	public Integer getFans() {
		return fans;
	}

	public void setFans(Integer fans) {
		this.fans = fans;
	}

	@Column(name = "article")
	public Integer getArticle() {
		return article;
	}

	public void setArticle(Integer article) {
		this.article = article;
	}

	@Column(name = "accept")
	public Integer getAccept() {
		return accept;
	}

	public void setAccept(Integer accept) {
		this.accept = accept;
	}

	@Column(name = "note")
	public Integer getNote() {
		return note;
	}

	public void setNote(Integer note) {
		this.note = note;
	}

	@Column(name = "address")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	@Column(name = "signtime")
	public String getSigntime() {
		return signtime;
	}

	public void setSigntime(String signtime) {
		this.signtime = signtime;
	}
	@Column(name = "status")
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "UserDetail [id=" + id + ", name=" + name + ", sex=" + sex
				+ ", city=" + city + ", exp=" + exp + ", total_sign="
				+ total_sign + ", continous_sign=" + continous_sign + ", hb="
				+ hb + ", signature=" + signature + ", skill=" + skill
				+ ", hobby=" + hobby + ", position_id=" + position_id
				+ ", createtime=" + createtime + ", head=" + head
				+ ", user_id=" + user_id + ", fans=" + fans + ", article="
				+ article + ", accept=" + accept + ", note=" + note
				+ ", address=" + address + ", signtime=" + signtime
				+ ", status=" + status + "]";
	}





}
